package com.gsn.poker.asset;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Sound;
import com.gsn.common.Settings;

public class PokerSound {
	//private final static String tag = "Poker Sound";
	
	private static Sound soundClick;
	private static Sound startGame;
	private static Sound chiaBai;
	private static Sound coundDown;
	private static Sound demGio;
	private static Sound thang;
	private static Sound thua;
	private static Sound xepBai;
	private static Sound toTatCa;
	private static Sound chipCrash;
	private static Sound jackpot;
	
	

	public static void playSound(Sound sound) {
		if (Settings.enableSound) {
			sound.play();
		}
	}

	public static void load() {
		soundClick = Gdx.audio.newSound(Gdx.files.internal("poker/sound/ButtonClick.mp3"));
		startGame = Gdx.audio.newSound(Gdx.files.internal("poker/sound/BatDauGame.mp3"));
		chiaBai = Gdx.audio.newSound(Gdx.files.internal("poker/sound/ChiaBai.mp3"));
		coundDown = Gdx.audio.newSound(Gdx.files.internal("poker/sound/CountDown.mp3"));
		demGio = Gdx.audio.newSound(Gdx.files.internal("poker/sound/DemGio.mp3"));
		thang = Gdx.audio.newSound(Gdx.files.internal("poker/sound/Thang.mp3"));
		thua = Gdx.audio.newSound(Gdx.files.internal("poker/sound/Thua.mp3"));
		xepBai = Gdx.audio.newSound(Gdx.files.internal("poker/sound/XepBai.mp3"));
	 	toTatCa = Gdx.audio.newSound(Gdx.files.internal("poker/sound/ToTatCa.mp3"));
		chipCrash = Gdx.audio.newSound(Gdx.files.internal("poker/sound/ChipChamNhau.mp3"));
		jackpot = Gdx.audio.newSound(Gdx.files.internal("poker/sound/Jackpot.mp3"));
	}

	public static void playClick() {
		playSound(soundClick);
	}

	public static void playStartGame() {
		playSound(startGame);
	}
	
	public static void playJackpot() {
		playSound(jackpot);
	}
	
	public static void playChiaBai() {
		playSound(chiaBai);
	}
	
	
	public static void playCoundDown() {
		playSound(coundDown);
	}
		
	public static void playDemGio() {
		playSound(demGio);
	}
	
	public static void playThang() {
		playSound(thang);
	}
	
	public static void playThua() {
		playSound(thua);
	}
	
	public static void playXepBai() {
		playSound(xepBai);
	}

	public static void playToTatCa() {
		playSound(toTatCa);
	}
	
	public static void playChipCrash() {
		playSound(chipCrash);
	}
}
